#pragma once

#include <web/pch.h>

namespace Web
{

    struct FileDesc
    {
        int fd;

        void SetFileDesc(int fd)
        {
            this->fd = fd;
        }
        
        bool ErrorFd()
        {
            return fd == -1;
        };
        
        int Close();

    };
};